package com.nercel.config;

import com.nercel.aop.MathAspect;
import com.nercel.aop.MathCompute;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@EnableAspectJAutoProxy
public class AopConfig {

    @Bean
    public MathCompute mathCompute(){
        return new MathCompute();
    }

    @Bean
    public MathAspect mathAspect(){
        return new MathAspect();
    }


}
